/* ============================ */
/* ========== MÓVIL =========== */
/* ============================ */

/* TEXTO E IMÁGENES */
@media only screen and (max-width: 767px) {
  /* Desactivar Fancybox en móviles sin afectar la grilla */
  .fancybox {
    pointer-events: none; /* Desactiva la interacción de Fancybox */
  }
  .close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 36px;
    text-decoration: none;
    color: black;
    z-index: 1000;
    font-family: Arial, sans-serif;
  }
  
  .close-button:hover {
    color: rgb(0, 0, 0);
    cursor: pointer;
    -webkit-text-stroke: 1px black;
  }
  .close-btn {
    position: fixed;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: black;
    z-index: 999;
  }

  .text-container2 {
    width: 100%;
    text-align: justify;
    margin: 20px 0 0 0;
    padding: 0 10px;
    box-sizing: border-box;
    height: auto;
  }

  .text-container1 {
    width: 100%;
    text-align: justify;
    margin: 100px 0 0 0;
    padding: 0 5px;
    box-sizing: border-box;
    height: auto;
  }

  .text-container {
    width: 100%;
    text-align: justify;
    margin: 20px 0 0 0;
    padding: 0 10px;
    box-sizing: border-box;
    height: auto;
  }

  .text {
    font-family: helvetica neue;
    font-weight: bold;
    font-size: 14px;
  }

  .highlight {
    font-family: helvetica neue;
    font-weight: bold;
    font-size: 40px;
  }

  .superlight {
    font-family: helvetica neue;
    font-size: 11px;
    line-height: 1;
  }

  .grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .grid-item {
    position: relative;
    overflow: hidden;
  }

  .grid-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }

  .see-more {
    color: black;
    font-size: 14px;
  }

  .see-more:hover {
    color: #000000;
    -webkit-text-stroke: 1px black;
  }
}
/* ============================ */
/* ========= TABLET =========== */
/* ============================ */

@media only screen and (min-width: 768px) and (max-width: 1024px) {

  .fancybox {
    pointer-events: none; /* Desactiva la interacción de Fancybox */
  }
  
  .close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 36px;
    text-decoration: none;
    color: black;
    z-index: 1000;
    font-family: Arial, sans-serif;
  }
  
  .close-button:hover {
    color: rgb(0, 0, 0);
    cursor: pointer;
    -webkit-text-stroke: 1px black;
  }

  .text-container2 {
    width: 85%; /* Reduce el ancho para tablets */
    text-align: justify;
    margin-top: 10px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .text-container1 {
    width: 85%; /* Reduce el ancho para tablets */
    text-align: justify;
    margin-top: 120px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .text-container {
    width: 85%; /* Reduce el ancho para tablets */
    text-align: justify;
    margin-top: 50px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .highlight {
    font-family: helvetica neue;
    font-size: 50px;
    font-weight: bold;
  }

  .text {
    font-family: helvetica neue;
    font-size: 16px;
    font-weight: bold;
  }

  .light {
    font-family: helvetica neue;
    font-size: 14px;
    font-weight: bold;
  }

  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .grid-item {
    position: relative;
    overflow: hidden;
  }

  .grid-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }

  .fancybox-button--arrow_left:before,
  .fancybox-button--arrow_right:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 40px;
    color: white;
  }

  .fancybox-toolbar {
    bottom: 20px;
  }

  .fancybox-container {
    backdrop-filter: blur(5px);
    touch-action: auto;
    overflow: hidden;
  }

  .fancybox-content {
    max-height: 100vh;
    overflow-y: auto;
  }

  .image-container {
    z-index: -3;
    width: 90vw;
    height: auto;
    margin-left: 5vw;
    margin-top: 10vh;
    overflow: hidden;
  }

  .image-container .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .see-more {
    color: black;
    font-size: 16px;
  }

  .see-more:hover {
    color: #000000;
    -webkit-text-stroke: 1px black;
  }
}

/* ============================ */
/* ======== LAPTOP ============ */
/* ============================ */

@media only screen and (min-width: 1025px) {
  body {
    overflow-x: hidden; /* Previene scroll horizontal */
  }

  .close-button {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 36px;
    text-decoration: none;
    color: black;
    z-index: 1000;
    font-family: Arial, sans-serif;
  }

  .close-button:hover {
    color: rgb(0, 0, 0);
    cursor: pointer;
    -webkit-text-stroke: 1px black;
  }

  .text-container {
    width: 23%;
    margin-left: 75%; /* reducido un poco para evitar desborde */
    margin-right: 50px;
    margin-top: 3vh;
    position: fixed;
    height: 50vh;
    text-align: justify;
  }

  .text-container2 {
    width: calc(100% - 100px); /* evita que el padding lateral desborde */
    text-align: justify;
    margin-left: 50px;
    padding: 0;
    box-sizing: border-box;
    height: auto;
  }

  .text-container1 {
    width: 80%;
    text-align: justify;
    margin: 100px 0 0 0;
    padding: 0 7%;
    box-sizing: border-box;
    height: auto;
  }

  .highlight {
    font-family: helvetica neue;
    font-weight: bold;
    font-size: 60px;
  }

  .text {
    font-size: 18px;
    font-family: helvetica neue;
    font-weight: bold;
  }

  .light {
    font-size: 16px;
    line-height: 0.1;
  }

  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 20px;
    width: 70%;
    margin-left: 50px;
    margin-top: 8vh;
    box-sizing: border-box;
  }

  .grid-item {
    position: relative;
    overflow: hidden;
  }

  .grid-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }

  .grid-item.horizontal img {
    grid-column-end: span 2;
  }

  .fancybox-button--arrow_left:before,
  .fancybox-button--arrow_right:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 40px;
    color: white;
  }

  .fancybox-toolbar {
    bottom: 10px;
  }

  .fancybox-container {
    backdrop-filter: blur(5px);
  }

  .image-container {
    z-index: -3;
    width: 70vw;
    height: auto;
    margin-left: 2vw;
    margin-top: 20vh;
    overflow: hidden;
  }

  .image-container .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .see-more {
    color: black;
    font-size: 18px;
  }

  .see-more:hover {
    color: #000000;
    -webkit-text-stroke: 1px black;
  }
}


/*---------------------------------------------------- MENU FLOTANTE INICIO ------------------------------------------------------*/
/*---------------------------------------------------- MENU FLOTANTE INICIO ------------------------------------------------------*/
/*---------------------------------------------------- MENU FLOTANTE INICIO ------------------------------------------------------*/

/* Estilos generales */
nav {
  width: 100%;
  background-color: white;
  font-size: 0.9rem;
  position: fixed;
  top: 0;
  left: 10px;
  z-index: 50;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
}

nav a {
  font-family: Arial, sans-serif;
  display: block;
  padding: 10px 20px;
  color: #000000;
  text-decoration: none;
}

nav a:hover {
  color: #000000;
  -webkit-text-stroke: 1px black;
}

.logo {
  position: fixed;
  top: 28px;
  left: 15px;
  width: 35px;
  height: 35px;
  z-index: 100;
  cursor: pointer;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  position: fixed;
  top: 28px;
  left: 15px;
  width: 35px;
  height: 35px;
  z-index: 200;
  cursor: pointer;
}

/* Ocultar botón de cerrar (X) por defecto */
.close-btn {
  display: none;
}

/* Estilos para móviles */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
    position: fixed;
    top: 28px;
    left: 15px;
    width: 35px;
    height: 35px;
    z-index: 200;
    cursor: pointer;
  }

  nav {
    display: none;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 170px;
    padding-top: 70px;
    transform: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav li {
    display: block;
    width: 100%;
    text-align: center;
  }

  .close-btn {
    display: none;
    background: none;
    border: none;
    position: fixed;
    top: 20px;
    right: 15px;
    font-size: 36px;
    text-decoration: none;
    color: black;
    z-index: 1200;
    font-family: Arial, sans-serif;
    cursor: pointer;
  }
}

/* Estilos para tablets/laptops */
@media (min-width: 1024px) {
  nav {
    transform: rotate(-90deg);
    transform-origin: top left;
    top: 97%;
  }
}


/*---------------------------------------------------- MENU FLOTANTE FIN ------------------------------------------------------*/
/*---------------------------------------------------- MENU FLOTANTE FIN ------------------------------------------------------*/
/*---------------------------------------------------- MENU FLOTANTE FIN ------------------------------------------------------*/


/*-------------------------------------------------- DERECHOS Y LINKS INICIO -----------------------------------------------------*/
/*-------------------------------------------------- DERECHOS Y LINKS INICIO -----------------------------------------------------*/
/*-------------------------------------------------- DERECHOS Y LINKS INICIO -----------------------------------------------------*/

footer {
  width: 100%;
  padding: 50px 0px 0px;
  margin-bottom: 35px;
  box-sizing: border-box;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}

.footer-links a {
  text-decoration: none;
  color: black;
}

.footer-links a:hover {
  -webkit-text-stroke: 1px black;
}

/* Ajustes para pantallas móviles */
@media screen and (max-width: 768px) {
  .footer-links {
    flex-direction: column; /* Los enlaces se apilan uno debajo del otro */
    align-items: center; /* Centra los enlaces en el eje horizontal */
    justify-content: center; /* Centra los enlaces en el eje vertical */
  }

  .footer-links a {
    margin-bottom: 10px; /* Espacio entre los enlaces */
  }

  .footer-links a:last-child {
    margin-bottom: 0; /* El último enlace no tiene margen abajo */
  }
}
/*-------------------------------------------------- DERECHOS Y LINKS FIN -----------------------------------------------------*/
/*-------------------------------------------------- DERECHOS Y LINKS FIN -----------------------------------------------------*/
/*-------------------------------------------------- DERECHOS Y LINKS FIN -----------------------------------------------------*/